<?php if(!AJAX){ ?><?php	$result = mysql_query("SELECT * FROM `197_sidebar` WHERE `position` = 1");	$sidebar = array();	while($row = mysql_fetch_assoc($result)){		array_push($sidebar, $row);	}?>			</div>			<div id="sidebar">				<div class="sidebar-item">					<h1>〉聯絡簿</h1>					<ul>						<li><a href="javascript:void(0)" onclick="$('#hw-datepicker-dialog').dialog('open');">日期選擇</a></li>					</ul>				</div>				<?php foreach($sidebar as $row){ ?>					<div class="sidebar-item">						<h1>〉<?php echo $row['title']; ?></h1>						<?php echo $row['content']; ?>					</div>				<?php } ?>			</div><?php } ?>